package com.kaka.service;

import com.kaka.pojo.Role;
import com.kaka.pojo.Users;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;

public interface UsersService  extends UserDetailsService {

    List<Users> findAll();

    Users findById(int id);

    int edit(Users users,int roleId);

    List<Role> findAllRole();

    int deleteUsers(int id);

    int addUsers(Users users,int roleId);

    Users findByUsersName(String username);
}
